// 为了方便vuex的数据的获取
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  stafPhone:state => state.user.userInfo.stafPhone,
}
// state.app.sidebar 全写是 this.$store.state.app.sidebar
// 如
//  name: state => state.user.name
// 是简写
// name(state) {
//  return state.user.name
// }    =====> 可以写成箭头函数 name(state)=>state.user.name
export default getters
